#include<iostream>
#include<memory>
#include"udp_client.hpp"

int main(int argv,char* argc[])
{
    // ./udp_client ip port
    if(argv!=3)
    {
        std::cerr<<"Usage: ./udp_client ip port"<<std::endl;
        return -1;
    }
    std::string ip=argc[1];
    uint16_t port=atoi(argc[2]);
    std::unique_ptr<UdpClient> up(new UdpClient(ip,port));
    up->Init();
    up->Start();
    return 0;
}